package com.panda.mall.common.mallCoupon.entity;

import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.panda.mall.common.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
* 优惠秒杀商品通知订阅表
* mall_coupon_seckill_notice
*/
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("mall_coupon_seckill_notice")
public class MallCouponSeckillNotice extends BaseEntity implements Serializable {

    /**
    * 主键id
    */
    @NotNull(message="[主键id]不能为空")
    @ApiModelProperty("主键id")
    private Long id;
    /**
    * 用户id
    */
    @ApiModelProperty("用户id")
    private Long userId;
    /**
    * 商品id
    */
    @ApiModelProperty("商品id")
    private Long skuId;
    /**
    * 场次id
    */
    @ApiModelProperty("场次id")
    private Long sessionId;
    /**
    * 订阅时间
    */
    @ApiModelProperty("订阅时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date subscribeTime;
    /**
    * 发送时间
    */
    @ApiModelProperty("发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date sendTime;
    /**
    * 通知方式（0-短信，1-邮件）
    */
    @ApiModelProperty("通知方式（0-短信，1-邮件）")
    private Integer noticeType;

}
